<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>一次性生活补助</title>
	<link rel="stylesheet" href="./styles/web/index.css">
	<link rel="stylesheet" href="./styles/web/print.css" type="text/css" media="print">
	<style>
		.xsnr {
			width: 35% !important;
		}
	</style>
</head>

<body>
	<div class="all">
		<!-- 头部开始 -->
		<script src="http://rsj.beijing.gov.cn/images/rsj_header.js"></script>
		<include src="./include/header.html"></include>
		<!-- 头部结束 -->
		<!-- 申请提示开始 -->
		<div class="message">
			<div class="content clearfix">
				<div class="zuo left scroll">
					<div class="first common" style="padding: 10px;">
						<div class="titles concommon">
							<a href="./index.html">
								< 首页</a> <span class="on">|</span>
									<span>历次申领记录查询</span>
						</div>
						<!-- 申领记录查询开始 -->
						<div class="message_tf">
							<div class="sl_box">
								<div class="totle" id="searchResult">
									<script type="text/html" id="searching">
									<%if(data.executeResult == 1){%>
									<% var _data = data.dataList[0]%>
									<div class="searchcontent clearfix">
										<div class="titles clearfix">
											<p class="left shen left">基本信息</p>
										</div>
										<div class="tf_item clearfix left">
											<span class="gr_name left" title="" style="width:15%">银行账号：</span>
											<span class="gr_one left"><%=_data.yhzh?_data.yhzh:''%></span>
										</div>
										<div class="grxx clearfix left">
											<span class="gr_name left">开户行：</span>
											<span class="gr_one left"><%=_data.khhmc?_data.khhmc:''%></span>
										</div>
										<div class="grxx clearfix left">
											<span class="gr_name left">银行卡类型：</span>
											<span class="gr_one left"><%=_data.yhk?_data.yhk:''%></span>
										</div>
										<div class="grxx clearfix left">
											<span class="gr_name left">审请时间：</span>
											<span class="gr_one left"><%=_data.sqsj?_data.sqsj:''%></span>
										</div>
										<div class="grxx clearfix left">
											<span class="gr_name left" title="" style="width:31%;">可享受总月数：</span>
											<span class="gr_one left"><%=_data.kxszys?_data.kxszys:''%></span>
										</div>
										<div class="grxx clearfix left">
											<span class="gr_name left" title="" style="width:36%;">未享受缴费年数：</span>
											<span class="gr_one left J_wxsjfns"></span>
										</div>
										<div class="grxx clearfix left">
											<span class="gr_name left" title="" style="width:36%">可享受总金额：</span>
											<span
												class="gr_one left"><%=_data.kxszje?_data.kxszje/100 + '(元)':''%></span>
										</div>
										<%if(_data.jylc == '9901'){%>
										<div class="tf_item clearfix left">
											<span class="gr_name left" title="">银行发放结果：</span>
											<%if(_data.yhffjg == '0'){%>
											<span class="gr_one left ffcg">发放成功</span>
											<%}else if(_data.yhffjg == ''){%>
											<span class="gr_one left ffdsh">待发放</span>
											<%}else{%>
											<span class="gr_one left ffsb">发放失败</span>
											<%}%>
										</div>
										<%}%>
										<%if(_data.btgyymc){%>
										<div class="tf_item clearfix left">
											<span class="gr_name left" title="" style="width:15%">不通过原因：</span>
											<span class="gr_one left"><%=_data.btgyymc?_data.btgyymc:''%></span>
										</div>
										<%}%>
									<div class="clearfix left titles hide">
										<p class="takes J_bzbg">领取信息列表</p>
									</div>
									</div>
							<%}%>
											</script>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="you right">
					<div class="top">
						<div class="person on">
							<p class="on xm"></p>
							<p class="lxdh"></p>
						</div>
						<p class="sfzhm"></p>
					</div>
					<div id="J_tcwrap">
						<script type="text/html" id="J_tcitem">
						<%if(data.executeResult == 1){%>
						<% var _data = data.baseInfo%>
						<div class="middle">
							<%if(_data.xszt){%>
								<div class="yyxx_box">
									<p class="zjyyxx" style="width: 160px;">
										<span>审核状态：</span>
										<span class="yhzh" title="<%=_data.xszt%>"><%=_data.xszt%></span>
									</p>
									<a href="#" class="J_jl">历次申领记录查询</a>
								</div>
							<%}else{%>
								<h3 class="">暂无申领记录</h3>
							<%}%> 
						</div>
						<div class="middle">
							<%if(_data.yhzh){%>
								<div class="yyxx_box clearfix">
									<p class="zjyyxx left" style="width: 176px;">
										<span>银行账号：</span>
										<span class="yhzh" title="<%=_data.yhzh%>"><%=_data.yhzh%></span>
									</p>
									<button class="right J_yhk">银行账号变更</button>
								</div>
							<%}else{%>
								<h3 class="">暂无银行账号信息</h3>
							<%}%> 
						</div>
						<%}%>
						</script>
					</div>
					<div class="newbox">
						<div class="box_two">
							<p class="zxtel">咨询电话：12333</p>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 申请提示结束 -->
		<!-- 尾部开始 -->
		<!-- <include src="./include/footer.html"></include> -->
		<script src="http://rsj.beijing.gov.cn/footer.js"></script>
		<!-- 尾部结束 -->
	</div>

</body>
<script src="./common/js/vendor.js"></script>
<script src="./common/js/jquery.js"></script>
<script src="./common/js/validator.js"></script>
<script src="./common/js/template-native.js"></script>
<script src="./common/js/common.js"></script>
<script src="./common/js/generaltools.js"></script>
<script>
	$(function () {
		var loading = new $.Loading();
		var tfyy, yhzhwh, lastdayoftheM;//停发原因
		var sqid = $.paramObj().sqid;
		getGrxx();//获取人员信息
		getLcyyxc(); //历次预约查询
		getYyhzhCx(); //原银行账户信息查询
		getSqid();
		//历次查询
		function getSqid() {
			var sqid = $.paramObj().sqid;
			var finurl = '/Nmgycxshbz/lcsljlCx' + '/' + sqid
			loading.on();
			$.asyncRender({
				url: finurl,
				type: 'get',
				wrap: '#searchResult',
				tem: '#searching',
				pos: 'returnData'
			}).done(function (result) {
				loading.off();
				var msg = result.returnData;
				if (msg.executeResult == "1") {
					if (msg.dataList[0].ljjfys) {
						$('.J_wxsjfns').text(parseInt(msg.dataList[0].ljjfys / 12))
					} else {
						$('.J_wxsjfns').text('');
					}
				} else {
					$.layerMsg(msg.message, '确定')
				}
			}).always(function () {
				loading.off();
			});
		}

		//原银行账户信息查询
		function getYyhzhCx() {
			$.asyncRender({
				url: '/Nmgycxshbz/yyhzhCx/1',
				type: 'get',
				wrap: '#J_wrap1',
				tem: '#J_item1',
				pos: 'returnData'
			}).done(function (result) {
				var msg = result.returnData;
				if (msg.executeResult == "1") {
					if (msg.dataList) {
						yhzhwh = msg.dataList[0]
					}
					lastdayoftheM = msg.lastdayoftheM;
				} else {
					$.layerMsg(msg.message, '确定')
				}
			})
		}
		// // 右侧银行账号变更
		$(document).on('click', '.J_yhk', function () {
			if (lastdayoftheM == '1') {
				$.layerMsg('每月最后一天因资金结算期，银行账号变更功能暂停，请在其他时间进行银行账号变更，谢谢理解和支持。', '确定')
			} else if (lastdayoftheM == '0') {
				if (yhzhwh) {
					$('.J_yhk').attr("disabled", false);
					window.location.href = "./yhkwh.html";
				} else {
					$('.J_yhk').attr("disabled", true);
				}
			}
		});

	})
</script>

</html>